package org.example.maven.service;

import org.example.maven.pojo.exhibition.list.AddExhibition;
import org.example.maven.pojo.exhibition.list.ExhibitionListTable;
import org.example.maven.pojo.exhibition.list.SearchExhibition;
import org.example.maven.pojo.exhibition.list.ticket.ExhibitionListTicket;
import org.example.maven.pojo.exhibition.list.ticket.ExhibitionListWeb;
import org.example.maven.pojo.exhibition.list.ticket.ExhibitionTicket;
import org.example.maven.pojo.exhibition.list.ticket.UserPaidTicket;

import java.text.ParseException;
import java.util.List;

public interface ExhibitionService {
    //获取展览list列表
    List<ExhibitionListTable> getAllExhibition(int pageNum, int pageSize);
    //进行藏品的搜索
    Integer getExhibitionCount(SearchExhibition searchExhibition);
    //进行添加展览
    void addExhibition(AddExhibition addExhibition);
    //进行藏品和展览的关联
    void setExhibitionCategory(int exhibitionId,int[]category);
    //根据id获取展览
    ExhibitionListTable getExhibitionById(int id);

    //添加展览的票
    void setExhibitionTicket(ExhibitionListTicket exhibitionListTicket);

    //获取展览的票
    List<ExhibitionListWeb> getExhibitionTicket(int id) throws ParseException;

    //根据展览id获取订单信息
    List<UserPaidTicket> getExhibitionOrderById(int id);
}
